//
//  HttpRequest.h
//  UI_网络请求封装
//
//  Created by dllo on 15/7/16.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
//代理
@protocol requestDelegate <NSObject>

-(void)requestData:(id)data;
//要把请求的值返回来，不知道是数组还是字典  所以用id任意类型

@end

@interface HttpRequest : NSObject

+(HttpRequest *)httpRequestHandle;


@property(nonatomic,assign)id<requestDelegate>delegate;

-(void)loadRequestWithUrl:(NSString *)urlString method:(NSString *)method
                   pramar:(NSString *)pramar;




//-(void)loadRequestWithUrl:(NSString *)urlString isGet:(BOOL)isGet;    (都可以)
@end
